package com.baeldung._02_supertypecompilerexception;

public class MyClass {

    private int myField1 = 10;
    private int myField2;

    /**
     * Cannot reference 'MyClass.myField1' before supertype constructor has been called
     * 在调用超类型构造函数之前无法引用“ MyClass.myField1”
     */
    public MyClass() {
        //uncomment this to see the supertype compiler error:
        //this(myField1);//调用这个构造器的时候,此成员变量还未初始化
    }

    public MyClass(int i) {
        myField2 = i;
    }
}